import { ElMessage } from 'element-plus'

export const my_message = () => {
    return {
        msg_error: (message) => {
            ElMessage({
                message,
                type: 'error'
            })
        },
        msg_warning: (message) => {
            ElMessage({
                message,
                type: 'warning'
            })
        },
        msg_info: (message) => {
            ElMessage({
                message,
                type: 'info'
            })
        },
        msg_success: (message) => {
            ElMessage({
                message,
                type: 'success'
            })
        }
    }
}